package com.acme.bankapp.domain.bank;

public class CheckingAccount extends AbstractAccount {

	private double overdraft;
	
	public CheckingAccount(double amount, double overdraft) {
		super(amount);
		this.overdraft = overdraft;
	}

	@Override
	public double maximumAmountToWithdraw() {
		return balance + overdraft;
	}

	@Override
	public String toString() {
		return "CheckingAccount Balance = " + balance + " overdraft = " + overdraft;
	}
}
